﻿///<reference path="jquery-1.7.1.min.js"/>
///<reference path="jquery-1.7.1-vsdoc.js"/>
// Transiit Controller for IP FOO
// This script acts as the bridge between uiController.js and the
// server-side controller that does the actual data processing.
// It has no interaction with the UI at all.
var Transit = function () {
    var server = document.URL + 'Execute';

    function send(model, postback) {
        ///<summary>Sends the model to the server and returns the results to the passed postback function</summary>
        $.post(server, model, postback, 'json');
    }

    var pub = new Object();
    pub.send = send;
    return pub;
}